@(title: String)(content: Html)

@import form.LoginForm._
@import tags._
@import helper._
@import helpers.Seguranca.InformacoesUsuarioHelper._


<!DOCTYPE html> 

<html>
    <head>
        <title>@title</title>
        
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        
         <!-- Estilos do Twitter Boostrap -->
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("bootstrap/css/bootstrap.min.css")">
        <style type="text/css">
	      body {
	        padding-top: 80px;
	        padding-bottom: 40px;
	      }
	    </style>
		<!--  --><link rel="stylesheet" media="screen" href="@routes.Assets.at("bootstrap/css/bootstrap-responsive.min.css")">
        
        
        
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/bootstrap.css")">         
        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
        <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
        <script src="@routes.Assets.at("javascripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
        <script src="@routes.Assets.at("javascripts/bootstrap.js")" type="text/javascript"></script>
        @* não funciona para o Modal <script src="@routes.Assets.at("javascripts/bootstrap.min.js")" type="text/javascript"></script> *@
    </head>
    <body>

	@if(isLogado()) {
	
		@if(getUsuarioLogado().isProfessor) {
			@menuProfessor()
   	    }
   	    
   	    @if(getUsuarioLogado().isAdministrador) {
			@menuAdmin()
   	    }
   	    
   	    @if(getUsuarioLogado().isAvaliador)	{
   	    	@menuAvaliador() 	
   	    	
   	   	} else {
	   		@menuGestor()
	   	}
    	
    } else {
    		@menuPublico()
    }
   


	<div class="container">

            <div class="content">
                
                <div class="page-header">
                    <h1>@title</h1>
        
        @if(flash.containsKey("success")){
        <br>
		   <center><h3><div class="success">@flash.get("success")</div></h3></center>  
		   <br>
	    } @if(flash.containsKey("error")){
	    <br>
		   <center><h3><div class="error">@flash.get("error")</div></h3></center> 
		   <br>
	    }
                </div>

                <div class="row">
                    <div class="span14">
                        @content
                        
    
                    </div>
                </div>
                
            </div>
<hr />
            <footer>
                
        	
        		<br/>
			<center>
				<p>	SIGEPI - Sistema de Gestão de Pesquisa e Inovação - beta 1.0 <br />
					<a href="http://portal.ifrn.edu.br/pesquisa/pro-reitoria-de-pesquisa-e-inovacao" target="blank" >PROPI - Pró-reitoria de Pesquisa e Inovação</a><br>
					<a href="http://ifrn.edu.br" target="blank">Instituto Federal de Educação,	Ciência e Tecnologia do Rio Grande do Norte</a> <br /> </br>
				</p>
				</p>
			</center>
		</footer>

        </div>
    </body>
</html>
